<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.ArrayList"%>
<%@page import="model.MonHocModel"%>
<%@page import="common.Constant" %>
<%@page import="dao.MonHocDAO"%>
<%@page import="dao.SinhVienDAO"%>
<%@page import="dao.DangKyDAO"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Thông Tin Môn Học</title>
<link href="../style/css.css" rel="stylesheet" type="text/css" />
<link href="../script/check.js" language="JavaScript" type="text/javascript" />
</head>
<body>
<!-- S HEAD CONTENT -->
	<jsp:include page="../header.jsp" />
<!-- E HEAD CONTENT -->
<c:set var="listDangKy" value='<%=DangKyDAO.showAllMonHocByMaSV(request.getParameter("maSinhVien"))%>'></c:set>
<c:set var="tenSinhVien" value = '<%= SinhVienDAO.XemTenSinhVien(request.getParameter("maSinhVien")) %>' scope="session"></c:set>
	
<form name="frmMonHoc" id="frmMonHoc" method="post" action="<%=request.getContextPath()%>/thanhVienController" >
<input type="hidden" name="actionType" id="actionType" value="monHoc" />
				<table align="center" style="size: 90%;">
					<tr style="background-color: transparent;">
						<td colspan="12">
							<H3><font color='blue'>Danh Sách Môn Học ${tenSinhVien.tenSV}</font></H3>
						</td>
					</tr>
				</table>
					
				<table border="1" align="center">					
					<tr>
						
						<th style='background-color: #186fb2;color:white' width="30px;">STT</th>
						<th style='background-color: #186fb2;color:white' width="100px;">Mã môn học</th>
						<th style='background-color: #186fb2;color:white' width="200px;">Tên môn học</th>
						<th style='background-color: #186fb2;color:white' width="200px;">TG bắt đầu</th>
						<th style='background-color: #186fb2;color:white' width="200px;">TG kết thúc</th>
						<th style='background-color: #186fb2;color:white' width="100px;">Chứng chỉ</th>
						<th style='background-color: #186fb2;color:white' width="100px;">Lệ phí</th>
					</tr>
					
					<%int c = 1; %>
					<c:forEach var="objDangKy" items="${listDangKy}">
									<tr>
											<td><%=c %></td>
											<td>${objDangKy.maMH }</td>
											<td>${objDangKy.tenMH }</td>
											<td>${objDangKy.thoiGianBatDau }</td>
											<td>${objDangKy.thoiGianKetThuc }</td>
											<td>${objDangKy.chungChi }</td>
											<td>${objDangKy.lePhi }</td>
									</tr>
						<%c++; %>
					</c:forEach>
				</table>
			<div class="div_footer"><br/>
				Copyright©2011. All right reserved.Theme design by HungVuong Group.
			</div></div>	
</form>
</body>
</html>